code = [6, 7, 8, 9,10]
i = 1
j =1
t = code[0]
while i <= 4:
    if t > code[i]:
        pass
    else:
        t = code[i]
    i +=1
code.remove(t)
t =code[0]
while j <= 3:
    if t < code[j]:
        pass
    else:
        t = code[j]
    j +=1
code.remove(t)
print(f"最终得分为：{sum(code)/3}")